package com.huawei.springboot2023.business.warehouse.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZhouChengYang
 * @since 2023-04-07
 */
@Getter
@Setter
@ApiModel(value = "Warehouse对象", description = "")
public class Warehouse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("对保鲜仓的唯一标识")
    @TableId(value = "whId", type = IdType.NONE)
    private String whId;

    @ApiModelProperty("保鲜仓名称")
    private String whName;

    @ApiModelProperty("保鲜仓所处的地理位置")
    private String whAddress;

    @ApiModelProperty("用户Id")
    private String userId;

    @ApiModelProperty("保鲜仓的占地面积")
    private Double whArea;

    @ApiModelProperty("用户设置保鲜仓温度")
    private Double temperature;

    @ApiModelProperty("用户设置保鲜仓湿度")
    private Double humidty;

    @ApiModelProperty("标识保鲜仓是否被使用，0代表未被使用，1代表正在使用，2代表正在申请中")
    private Integer isUse;

    @ApiModelProperty("插入时间")
    @TableField(fill = FieldFill.INSERT)
    private Date insertTime;

    @ApiModelProperty(" 上次修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(" 逻辑删除标识，0代表未被删除，1代表被删除")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("保鲜仓使用人姓名")
    private String useName;


}
